/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package View;

import java.awt.event.WindowEvent;
import java.awt.event.WindowAdapter;
import javax.swing.JFrame;

/**
 *
 * @author Pro
 */
public class MyFrame extends JFrame{

    private Display display;

    public MyFrame(){

        setTitle("Bouncer v0.1");

        display = new Display();
        add(display);

        pack();// Forces the frame around the components
        this.addWindowListener(new WindowAdapter() {

            @Override
            public void windowClosing(WindowEvent e){
                System.out.println("Exit.............");
        System.exit(0);}

        });




    }

}
